package com.question.java.string;

/**
 * @Description:
 * @Author: Jun Yang
 * @Time: 2018/12/3 下午4:40
 * @Version: 1.0
 */
public class TestMain2 {
    public static void main(String[] args) {
        String rate = "0.001";
        String str = "subOrderPrice * %s";

        str = String.format(str, rate);

        System.out.println(str);

        String str1 = "";
        String[] array = str1.split(",");

        System.out.println(array[0]);
    }
}
